package com.shujia.bean;

import org.apache.hadoop.hbase.util.Bytes;

import java.util.Arrays;

public class MyCell {
    private byte[] rowKey;
    private byte[] columnFamily;
    private byte[] columnQualifier;
    private byte[] columnValue;

    public MyCell() {
    }

    public MyCell(byte[] rowKey, byte[] columnFamily, byte[] columnQualifier, byte[] columnValue) {
        this.rowKey = rowKey;
        this.columnFamily = columnFamily;
        this.columnQualifier = columnQualifier;
        this.columnValue = columnValue;
    }

    public byte[] getRowKey() {
        return rowKey;
    }

    public void setRowKey(byte[] rowKey) {
        this.rowKey = rowKey;
    }

    public byte[] getColumnFamily() {
        return columnFamily;
    }

    public void setColumnFamily(byte[] columnFamily) {
        this.columnFamily = columnFamily;
    }

    public byte[] getColumnQualifier() {
        return columnQualifier;
    }

    public void setColumnQualifier(byte[] columnQualifier) {
        this.columnQualifier = columnQualifier;
    }

    public byte[] getColumnValue() {
        return columnValue;
    }

    public void setColumnValue(byte[] columnValue) {
        this.columnValue = columnValue;
    }

    @Override
    public String toString() {
        return "MyCell{" +
                "rowKey=" + Bytes.toString(rowKey) +
                ", columnFamily=" + Bytes.toString(columnFamily) +
                ", columnQualifier=" + Bytes.toString(columnQualifier) +
                ", columnValue=" + Bytes.toString(columnValue) +
                '}';
    }
}
